﻿using System;

namespace Moria
{
	[Flags]
	public enum ItemFlag : uint
	{
		NULL = 0x00000000,
		/* definitions for objects that can be worn */
		STATS = 0x0000003F,	/* the StatAdj must be the low 6 bits */
		STR = 0x00000001,
		INT = 0x00000002,
		WIS = 0x00000004,
		DEX = 0x00000008,
		CON = 0x00000010,
		CHR = 0x00000020,
		SEARCH = 0x00000040,
		SLOW_DIGEST = 0x00000080,
		STEALTH = 0x00000100,
		AGGRAVATE = 0x00000200,
		TELEPORT = 0x00000400,
		REGEN = 0x00000800,
		SPEED = 0x00001000,

		EGO_WEAPON = 0x0007E000,
		SLAY_DRAGON = 0x00002000,
		SLAY_ANIMAL = 0x00004000,
		SLAY_EVIL = 0x00008000,
		SLAY_UNDEAD = 0x00010000,
		FROST_BRAND = 0x00020000,
		FLAME_TONGUE = 0x00040000,

		RES_FIRE = 0x00080000,
		ResistAcid = 0x00100000,
		RES_COLD = 0x00200000,
		SUST_STAT = 0x00400000,
		FREE_ACT = 0x00800000,
		SEE_INVIS = 0x01000000,
		RES_LIGHT = 0x02000000,
		FFALL = 0x04000000,
		BLIND = 0x08000000,
		TIMID = 0x10000000,
		TUNNEL = 0x20000000,
		INFRA = 0x40000000,
		CURSED = 0x80000000,
		//------------- chest flags
		/* definitions for chests */
		LOCKED_CHEST = 0x00000001,
		TRAPPED_CHEST = 0x000001F0,
		LOSE_STR_CHESTTRAP = 0x00000010,
		POISON_CHESTTRAP = 0x00000020,
		PARALYSED_CHESTTRAP = 0x00000040,
		EXPLODE_CHESTTRAP = 0x00000080,
		SUMMON_CHESTTRAP = 0x00000100,

	}
}
